package com.mall.service;

import com.mall.controller.vo.GoodsCategoryVO;
import com.mall.entity.Goods;

import java.util.List;

/**
 * @author xyl
 * @date 2021-02-12 17:19
 */
public interface GoodsService {
    int add(Goods goods);

    List<Goods> search(String searchKey,String categoryName);

    int modifyGoodsById(Goods goods);

    int removeGoodsById(Integer goodsId);

    List<Goods> getRandomGoods(Goods goods);

    List<Goods> getGoodsList(Goods goods);

    List<GoodsCategoryVO> getGooodsByCategory();

    List<Goods> getGoodsByCategoryName(String categoryName);

    Goods getGoodsById(Integer goodsId);

    List<Goods> getGoodsByFavorite();

    List<Goods> listAll();

    List<Goods> listBySeq(String categoryName, Integer seq);
}
